Rotates an image 90 degrees in place.
The image to rotate
The direction to rotate
The input image for chainability reasons.
See Implementation
Rotates an image 90 degrees in place.